<template>
	<view class="content">
		<!-- 自定义导航 -->
		<view class="f1">
			<slot name="icon-left"></slot>
			<text class="title">{{title}}</text>
			<slot name="icon-right"></slot>
		</view>
	</view>
</template>

<script>
	export default {
		name: "zh-nav-bar",
		props: {
			title: {
				type: String,
				default: "标 题",
				required: false,
			},
		},
		data() {
			return {}
		}
	}
</script>

<style scoped lang="scss">
	.f1 {
		height: $zh-navigation-height;
		width: 100%;
		background-color: $zh-theme-dark;
		color: #fff;
		padding: 0 $uni-spacing-row-lg;
		align-items: center;

		.title {
			flex: 1;
			text-align: center;
			font-weight: 400;
			font-size: $uni-font-size-lg;
			line-height: $zh-navigation-height;
		}
	}
</style>
